<?php
/**
 * Created by PhpStorm.
 * User: Guangpeng Chen
 * Date: 15-8-12
 * Time: 下午5:59
 */
$channel = $_POST['channel'];
$post_id = $_POST['id'];
if ($_SESSION['memberID']) exit;
include_once '/var/www/html/new/d/module/common/Db.class.php';
$dbConf = include '/var/www/html/new/d/module/common/db.conf.php';// 远端服务器配置信息
\PFT\Db::Conf($dbConf['localhost']);
$db = \PFT\Db::Connect();
include '../../api/ProductApi.php';
$pa = new ProductApi($db);
switch ($channel) {
    case 'ctrip':
        include 'Ctrip.php';
        $ctrip =  new Api\Ctrip();
        $TicketSenicSpotInfo = $ctrip->TicketSenicSpotInfo($post_id);

        break;
}